@using ZR.CodeGenerator
@using ZR.Model.System.Generate
@using Infrastructure.Extensions;
@* @model ZR.CodeGenerator.Model.GenerateDto; *@
@{
    var genOptions = Model.GenOptions;
    var genTable = Model.GenTable;
    var funCodeFirstLower=genTable.FunctionCode.FirstLowerCase();
    
    var replaceDto = Model.ReplaceDto;
    
}

using Microsoft.AspNetCore.Mvc;
using Infrastructure.Filters;
using ZR.Infrastructure;
using @(genOptions.IServicsNamespace).@(genOptions.SubNamespace).IService;
using @(genOptions.DtosNamespace).@(genOptions.SubNamespace).Dto;
using @(genOptions.DtosNamespace).@(genOptions.SubNamespace).Entity;
using @(genOptions.ModelsNamespace);
using @(genOptions.ApiControllerNamespace).MainModules;
using ZR.ServiceCore.Attributes;
@if (replaceDto.ShowBtnImport)
{
    @:using MiniExcelLibs;
}

namespace @(genOptions.ApiControllerNamespace).Controllers.@(genOptions.SubNamespace)
{
    /// <summary>
    /// @(genTable.FunctionName)
    /// </summary>
    [Route("@(genTable.ModuleCode)/@(funCodeFirstLower)")]
    [ApiController]
    [EnableRspContract]
    [ModuleInfo(typeof(@(genTable.ModuleCode.FirstUpperCase())Module),"@(genTable.FunctionName)管理")]
    public class @(genTable.FunctionCode)Controller : @(genTable.FunctionCode)ControllerBase
    {

            public @(genTable.FunctionCode)Controller(I@(genTable.FunctionCode)Service @(funCodeFirstLower)Service, MapsterAdaptEntityCfg mapsterAdaptEntityCfg)
                :base(@(funCodeFirstLower)Service, mapsterAdaptEntityCfg)
            {

            }
    }
}